<?php
/**
 * Created by PhpStorm.
 * User: Lin
 * Date: 2017/4/7 0007
 * Time: 下午 20:10
 */
Class MemberRelationModel extends RelationModel{
    Protected $tableName='member';
    Protected $_link=array(
        'order'=>array(
            'mapping_type'=>HAS_MANY,
            'foreign_key'=>'member_id',
            'condition'=>'order_status=2'
        ),
        'rx'=>array(
            'mapping_type'=>HAS_MANY,
            'foreign_key'=>'member_id',
            'condition'=>'order_status=2'
        ),
    );
}